
package andre.grids.filesystem.server.directorymanagement;

import andre.grids.filesystem.server.configuration.RmiRegister;
import andre.grids.guids.IpTimeGuidFactory;

/**
 *
 * @author andre
 */
public class DirectoryOperationsConfiguration {
    
    private static DirectoryManagerImpl defaultManager;
    
    public static void configure(DirectoryManagerImpl impl)
    {
        defaultManager = impl;
    }
    
    public static void configure(DirectoryOperationsImpl impl)
    {
        DirectoryOperationsImpl.setDirectoryManagerFor(impl, defaultManager);
        impl.setGuidFactory(new IpTimeGuidFactory());
        RmiRegister.setLocalObjects(impl, null);
    }
}
